import { $get, $post } from "@/utils/network.ts";

export function loginReq(data: any) {
  return $post("/mock/login", data, { enableLoading: true, promptError: true });
}
export function sendCodeReq(data: { phone: string; }) {
  return $post("/mock/sendCode", data, { enableLoading: true, promptError: true });
}
export function orderList(data?: any) {
  return $get("/api/order/lists", data, { enableLoading: false, promptError: true });
}
export function getUserInfo(data?: any) {
  return $get("/api/getUserInfo", data, { enableLoading: false, promptError: true });
}